﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;

public class Cupid : Missile
{
    public Cupid()
    {
        m_Price = 520;
        m_Type = ItemsType.WEAPON_SMALL_MISSILE_CUPID;
        m_Speciality = Speciality.MAIN;
        ResearchInfluence = InfluenceMG.INFLUENCE_FOLK;
        m_DamageType = DamageType.TYPE_KINETIC;
        ShutRange = 11;
        m_TrunVelocity = 100;
        ShutVelocity = 16.4f;
        BulletFlyVelocity = 7f;
        Damage = 140;
        m_DropRate = 0.01f;
        m_ShotErrorValueBase = 80;
        m_Hp = 40;
        m_Acceleration = 100;
        Name = "丘比特";
        Perview = "Textures/Weapon/WeaponSmall/Cupid";
        WeaponResource = "Perfabs/Weapon/Small/Cupid";
        BulletResource = "Perfabs/Bullet/Cupid";
        m_FireAudioResouce = "Perfabs/Audio/PuHu";
        Description = "民间研制的丘比特导弹.奇怪的造型让人感觉这东西根本跑不起来，但它以一种奇怪的逻辑在运作，护盾被他碰见了都会被软化，专业的名词是EMP爆弹。专业的工程师根本不屑去捣鼓这个东西，所以该武器一直没有被量产，价格高高挂起。";

    }

    public override FlyItem Fire(GameObject ship, WeaponSlot slot, Vector3 position, Vector3 direction)
    {
        Slot = slot;
        var item = base.Fire(ship, slot, position, direction);
        MissileFunction missile = item as MissileFunction;
        if (missile)
            missile.m_Trace = true;
        item = base.Fire(ship, slot, position, direction);
        missile = item as MissileFunction;
        if (missile)
            missile.m_Trace = true;
        return item;
    }
}